package Test07_8;

public class ThreadB extends Thread{
	int total;
	public void run(){
		
		synchronized(this){
			
			System.out.println("ThreadB is running....");
			for(int i=0;i<10;i++){
				total+=i;
				System.out.println("total is "+total);
			}
			notify();
		}
	}
}
